package com.insta.library.DAO;

/**
 * This interface lists all the constants that the system uses to get a Database connection.
 */
public interface DataAccessConstants {

    /**
     * Database error code when we want to insert an id that already exists.
     */
    int DATA_ALREADY_EXIST = 1062;

    /**
     * JDBC Driver class to instanciate.
     */
 //   String JDBC_DRIVER = "com.mysql.jdbc.Driver";
    String JDBC_DRIVER = "org.hsqldb.jdbcDriver";

    /**
     * URL of where the database is located.
     */
    String URL_DB = "jdbc:hsqldb:file:/home/scordiac/jeeprojects/libraryproject/insta-library/sf-myLibrary/src/main/resources/data/person";

    /**
     * Username to access the database.
     */
    String USER_DB = "sa";

    /**
     * Password to access the database.
     */
    String PASSWD_DB = "";
}
